<%--
  Created by IntelliJ IDEA.
  User: Lee
  Date: 2022/10/17
  Time: 10:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
这里是结账柜台，请确认以下信息<br><br>
您的会员卡号是：
<%
    String id = (String) session.getAttribute("id");
    out.print(id);
%>
<br>
您的购物清单：<br>
<%
    request.setCharacterEncoding("utf-8");
    String get_good[] = request.getParameterValues("tiaoliao");
    if(get_good!=null){
        session.setAttribute("goods",get_good);
    }

    String goods[]= (String[]) session.getAttribute("goods");
    /*for(String item : goods){
        out.print(item);
    }*/
    if(goods!=null){
        for(int i=0;i<goods.length;i++){
            out.print(goods[i]+"<br>");
        }
    }

%>
<a href="loginID.jsp">修改卡号</a>
<a href="food.jsp">重新选择</a>
</body>
</html>
